﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage.Master" AutoEventWireup="true" CodeBehind="MemberManage.aspx.cs" Inherits="ZF.WS.Admin.MemberManage" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script>

        $(function() {
 
            $.formValidator.initConfig({ formid: document.forms[0].id, onerror: function(msg) { alert(msg) } });

            $(".tbUserName").formValidator({ tipid: "tbUserNameTip", onshow: "4-16个字符(数字，字母和下划线)", onfocus: "4-16个字符(数字，字母和下划线)", oncorrect: " ", onempty: "4-16个字符(数字，字母和下划线)" })
    .inputValidator({ min: 4, onerror: "输入错误：用户名不能少于4个字符" })
    .inputValidator({ max: 16, onerror: "输入错误：用户名不能多于16个字符" })
    .regexValidator({ regexp: "username", datatype: "enum", onerror: "输入错误，用户名中含有非法字符" })
    .ajaxValidator({
        type: "POST",
        url: "/WebService.asmx/CheckUserName",
        data: "{'name':'{0}'}",
        contentType: "application/json; charset=utf-8",
        datatype: "json",
        success: function(rst) { return (rst.d); },
        error: function() { alert("服务器没有返回数据，可能服务器忙，请重试"); },
        onerror: "该用户名已被使用，请使用其他用户名",
        onwait: "正在对用户名进行合法性校验，请稍候..."
    });


            $(".tbPassword").formValidator({ tipid: "tbPasswordTip", onshow: "6-16位的数字、字母、下划线 ", onfocus: "6-16位的数字、字母、下划线 ", oncorrect: " ", onempty: "6-16位的数字、字母、下划线 " })
    .inputValidator({ min: 6, onerror: "输入错误：密码不能少于6个字符" })
    .inputValidator({ max: 16, onerror: "输入错误：密码不能超过16个字符" });

            $(".tbPassword1").formValidator({ tipid: "tbPasswordTip1", onshow: "请重复输入密码 ", onfocus: "请重复输入密码 ", oncorrect: " ", onempty: "请重复输入密码 " })
.compareValidator({ desid: "<%=this.tbPassword.ClientID %>", operateor: "=", onerror: "2次密码不一致,请确认" });

            $(".tbEmail").formValidator({ tipid: "tbEmailTip", onshow: "请输入你的邮箱", onfocus: "请输入你的邮箱", oncorrect: " ", onempty: "请输入你的邮箱" })
    .regexValidator({ regexp: "email", datatype: "enum", onerror: "邮箱格式错误" })
    .ajaxValidator({
        type: "POST",
        url: "/WebService.asmx/CheckEmail",
        data: "{'email':'{0}'}",
        contentType: "application/json; charset=utf-8",
        datatype: "json",
        success: function(rst) { return (rst.d); },
        error: function() { alert("服务器没有返回数据，可能服务器忙，请重试"); },
        onerror: "该邮箱已被使用，请使用其他邮箱",
        onwait: "正在对用户名进行合法性校验，请稍候..."
    });
            $(".tbQQ").onlypressnum();
        });
    
    </script>
    <script>

        $(function() {
            $(":checkbox#more").click(function() {
                if (this.checked) {
                    $("tbody.other").show();

                } else
                    $("tbody.other").hide();
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <div class="editContainer">
        <table class=" w100_  edit ">
            <tbody>
                <tr>
                    <th colspan="4">
                        <div class="c">
                             添加系统管理员 (" * "号为必填项） </div>
                    </th>
                </tr>
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_">*</span>用户名：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                             <zf:TextBox runat="server" ID="tbUserName" class="txt"></zf:TextBox>
                              <span class="zx_" id="tbUserNameTip"></span>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_">*</span>密   码：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                             <zf:TextBox runat="server" ID="tbPassword"  TextMode="Password" class="txt"></zf:TextBox>
                              <span class="zx_" id="tbPasswordTip"></span>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_">*</span>确认密码：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                             <zf:TextBox runat="server" ID="tbPassword1" TextMode="Password" class="txt"></zf:TextBox>
                              <span class="zx_"  id="tbPasswordTip1"></span>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_">*</span>邮箱：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                             <zf:TextBox runat="server" ID="tbEmail" class="txt"></zf:TextBox>
                             <span class="zx_" id="tbEmailTip"></span>
                        </div>
                    </td>
                </tr>
                 
 <tr  class="dn_">
                    <td class="ll">
                        <div class="c">
                            <span class="xh_">*</span>注册用户协议： 
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                        点击阅读：<a href="#">《 广东攻房网用户协议 》 </a>
                        
                         
                              <span class="zx_"></span>
                        </div>
                    </td>
                </tr>
            </tbody>
            <tbody  class="dn_">
                <tr>
                    <th colspan="4">
                        <div class="c">
                            <input type="checkbox" id="more" />  选填项-详细资料 </div>
                    </th>
                </tr>
            </tbody>
            <tbody class="other dn_">
               
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"></span>提示问题：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                             <zf:TextBox runat="server" ID="tbQuestion" class="txt"></zf:TextBox>
                              <span class="zx_"></span>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"></span>提示答案：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                             <zf:TextBox runat="server" ID="tbAnswer" class="txt"></zf:TextBox>
                              <span class="zx_"></span>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"></span>联 系 人：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                             <zf:TextBox runat="server" ID="tbContact" class="stxt"></zf:TextBox>
                              <span class="zx_"></span>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"></span>性   别：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                             <zf:RadioButtonList runat="server" ID="rblSex" RepeatDirection="Horizontal" RepeatLayout="Flow">
                             <asp:ListItem Value="1" Text="男" Selected="True"></asp:ListItem>
                             <asp:ListItem Value="2" Text="女"></asp:ListItem>
                             
                             </zf:RadioButtonList>
                             <span class="zx_"></span>
                        </div>
                    </td>
                </tr>
                 <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"></span>联系电话：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                             <zf:TextBox runat="server" ID="tbTel" class="txt"></zf:TextBox>
                              <span class="zx_"></span>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"></span>手机：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                             <zf:TextBox runat="server" ID="tbPhone" class="txt"></zf:TextBox>
                              <span class="zx_"></span>
                        </div>
                    </td>
                </tr>
                 <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"></span>证件号码：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                             <zf:TextBox runat="server" ID="tbIDCard" class="txt"></zf:TextBox>
                              <span class="zx_"></span>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"></span>职   业：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                            <zf:DropDownList runat="server" ID="ddlJob">
                            <asp:ListItem></asp:ListItem>
                                    <asp:ListItem value="" selected="selected">请选择</asp:ListItem>
                                  <asp:ListItem value="政府机关/干部">政府机关/干部</asp:ListItem>
                                  <asp:ListItem value="计算机">计算机</asp:ListItem>
                                  <asp:ListItem value="网络">网络</asp:ListItem>
                                  <asp:ListItem value="商业/贸易">商业/贸易</asp:ListItem>
                                  <asp:ListItem value="银行/金融/证券/保险/投资">银行/金融/证券/保险/投资</asp:ListItem>
                                  <asp:ListItem value="税务">税务</asp:ListItem>
                                  <asp:ListItem value="咨询">咨询</asp:ListItem>
                                  <asp:ListItem value="服务">服务</asp:ListItem>
                                  <asp:ListItem value="旅游/饭店">旅游/饭店</asp:ListItem>
                                  <asp:ListItem value="房地产">房地产</asp:ListItem>
                                  <asp:ListItem value="法律/司法">法律/司法</asp:ListItem>
                                  <asp:ListItem value="文化与教育">文化与教育</asp:ListItem>
                                  <asp:ListItem value="媒介/广告">媒介/广告</asp:ListItem>
                                  <asp:ListItem value="农业/渔业/林业/畜牧业">农业/渔业/林业/畜牧业</asp:ListItem>
                                  <asp:ListItem value="矿业/制造业">矿业/制造业</asp:ListItem>
                                  <asp:ListItem value="学生">学生</asp:ListItem>
                                  <asp:ListItem value="自由职业">自由职业</asp:ListItem>
                                  <asp:ListItem value="其它">其它</asp:ListItem>
                            </zf:DropDownList>
                               
                              <span class="zx_"></span>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"></span>出生日期： 
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                            <select name="year">
                                <option value="1950" selected="selected">----</option>
                                
                                <option value="1950">1950</option>
                                <option value="1951">1951</option>
                                <option value="1952">1952</option>
                                <option value="1953">1953</option>
                                <option value="1954">1954</option>
                                <option value="1955">1955</option>
                                <option value="1956">1956</option>
                                <option value="1957">1957</option>
                                <option value="1958">1958</option>
                                <option value="1959">1959</option>
                                <option value="1960">1960</option>
                                <option value="1961">1961</option>
                                <option value="1962">1962</option>
                                <option value="1963">1963</option>
                                <option value="1964">1964</option>
                                <option value="1965">1965</option>
                                <option value="1966">1966</option>
                                <option value="1967">1967</option>
                                <option value="1968">1968</option>
                                <option value="1969">1969</option>
                                <option value="1970">1970</option>
                                <option value="1971">1971</option>
                                <option value="1972">1972</option>
                                <option value="1973">1973</option>
                                <option value="1974">1974</option>
                                <option value="1975">1975</option>
                                <option value="1976">1976</option>
                                <option value="1977">1977</option>
                                <option value="1978">1978</option>
                                <option value="1979">1979</option>
                                <option value="1980">1980</option>
                                <option value="1981">1981</option>
                                <option value="1982">1982</option>
                                <option value="1983">1983</option>
                                <option value="1984">1984</option>
                                <option value="1985">1985</option>
                                <option value="1986">1986</option>
                                <option value="1987">1987</option>
                                <option value="1988">1988</option>
                                <option value="1989">1989</option>
                                <option value="1990">1990</option>
                                <option value="1991">1991</option>
                                <option value="1992">1992</option>
                                <option value="1993">1993</option>
                                <option value="1994">1994</option>
                                <option value="1995">1995</option>
                                <option value="1996">1996</option>
                                <option value="1997">1997</option>
                                <option value="1998">1998</option>
                                <option value="1999">1999</option>
                                <option value="2000">2000</option>
                                <option value="2001">2001</option>
                                <option value="2002">2002</option>
                                <option value="2003">2003</option>
                                <option value="2004">2004</option>
                                <option value="2005">2005</option>
                                <option value="2006">2006</option>
                            </select>
                            年
                            <select name="month">
                                <option value="01" selected="selected">--</option>
                               
                                <option value="1">01</option>
                                <option value="2">02</option>
                                <option value="3">03</option>
                                <option value="4">04</option>
                                <option value="5">05</option>
                                <option value="6">06</option>
                                <option value="7">07</option>
                                <option value="8">08</option>
                                <option value="9">09</option>
                                <option value="10">10</option>
                                <option value="11">11</option>
                                <option value="12">12</option>
                            </select>
                            月
                           <select name="day">
                              <option value="" selected="selected"></option>
                              <option value="1">01</option>
                              <option value="2">02</option>
                              <option value="3">03</option>
                              <option value="4">04</option>
                              <option value="5">05</option>
                              <option value="6">06</option>
                              <option value="7">07</option>
                              <option value="8">08</option>
                              <option value="9">09</option>
                              <option value="10">10</option>
                              <option value="11">11</option>
                              <option value="12">12</option>
                              <option value="13">13</option>
                              <option value="14">14</option>
                              <option value="15">15</option>
                              <option value="16">16</option>
                              <option value="17">17</option>
                              <option value="18">18</option>
                              <option value="19">19</option>
                              <option value="20">20</option>
                              <option value="21">21</option>
                              <option value="22">22</option>
                              <option value="23">23</option>
                              <option value="24">24</option>
                              <option value="25">25</option>
                              <option value="26">26</option>
                              <option value="27">27</option>
                              <option value="28">28</option>
                              <option value="29">29</option>
                              <option value="30">30</option>
                            </select>
                            日 <span class="zx_"></span>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"></span>详细住址： 
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                                <zf:TextBox runat="server" ID="tbAddress" class="txt"></zf:TextBox>
                              <span class="zx_"></span>
                        </div>
                    </td>
                </tr>
                
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"></span>邮   编： 
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                                <zf:TextBox runat="server" ID="tbZipcode" class="txt"></zf:TextBox>
                              <span class="zx_"></span>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"></span>QQ号码： 
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                                <zf:TextBox runat="server" ID="tbQQ" class="txt"></zf:TextBox>
                              <span class="zx_"></span>
                        </div>
                    </td>
                </tr>
                 
            </tbody>
            <tbody>
                <tr class="b">
                    <td colspan="4">
                        <div>
                            <zf:Button  ID="btAdd" class="linkbtn addSubmit" runat="server" OnClick="AddSubmit"
                                Text=" 确认提交 "  ></zf:Button>
                           
                            <input type="button" class="linkbtn" value=" 取 消 " onclick="goBack();" />
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</asp:Content>
